<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新建用户</title>
    <style>
    </style>
</head>
<body>
<form action="useradd2.php" method="post" >
    <div>
        <label for="name">用户名:</label>
        <input type="text" id="name" name="name" placeholder="请输入用户名" required>
    </div>
    <div>
        <label for="pass">密码:</label>
        <input type="text" name="pass" id="pass" placeholder="请输入密码" required>
    </div>
    <div>
        <label for="group">用户组:</label>
        <input type="text" name="group" id="group" placeholder="请输入用户组名" required>
    </div>
    <div>
        <label for="role">用户角色:</label>
        <input type="text" name="role" id="role" placeholder="请输入角色名" required>
    </div>
    <div>
        <label for="email">邮箱:</label>
        <input type="email" id="email" name="email" placeholder="请输入邮箱" pattern="[^@]*@[^@]*[\.com$]" required>
    </div>
    <input type="submit" name="reg" value="保存用户">
</form>
</body>
</html>